{
    //二进制ob开头
    console.log(0b111110111);
    //八进制0o开头
    console.log(0o767)
}

{
    console.log('15', Number.isFinite(15));
    console.log('NaN', Number.isFinite(NaN));
    console.log('1/0', Number.isFinite(true / 0));
    console.log('NaN', Number.isNaN(NaN));
    console.log('NaN', Number.isNaN(0));
    console.log('NaN', Number.isNaN('s'));
}

{
    //是不是整数
    console.log('25', Number.isInteger(25));
    console.log('25.0', Number.isInteger(25.0));
    console.log('25.1', Number.isInteger(25.1));
    console.log('25.1', Number.isInteger('25.1'));
    console.log('25.1', Number.isInteger('25'));
}


{
    console.log(Number.MAX_SAFE_INTEGER)
    console.log(Number.MIN_SAFE_INTEGER);
    console.log('10', Number.isSafeInteger(10));
}

{
    //取整数部分
    console.log(4.1, Math.trunc(4.1));
    console.log(4.9, Math.trunc(4.9));

}


{
    //判断是正数负数
    console.log(-5, Math.sign(-5));//-1
    console.log(0, Math.sign(0));//0
    console.log(5, Math.sign(5));//1
    console.log('5', Math.sign('5'));
    console.log('-1', Math.sign('-1'));
    console.log('hls', Math.sign('hls'));
}

{
    console.log('立方根-1：', Math.cbrt(-1));
    console.log('立方根2：', Math.cbrt(8));
}